﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DBA.Common
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
    public class OrmPropertyAttribute :Attribute
    {
        private string _PrimaryKeyType;

        public string PrimaryKeyType
        {
            get { return _PrimaryKeyType; }
            set { _PrimaryKeyType = value; }
        }

        private string _tableName;

        public string TableName
        {
            get { return _tableName; }
            set { _tableName = value; }
        }

        private int _ParameterLength;
        /// <summary>
        /// 参数的长度
        /// </summary>
        public int ParameterLength
        {
            get { return _ParameterLength; }
            set { _ParameterLength = value; }
        }

        private string _ParameterType;

        /// <summary>
        /// 参数的类型
        /// </summary>
        public string ParameterType
        {
            get { return _ParameterType; }
            set { _ParameterType = value; }
        }

        private string _IsNull;

        /// <summary>
        /// 参数是否允许为空
        /// </summary>
        public string IsNull
        {
            get { return _IsNull; }
            set { _IsNull = value; }
        }

        private string _PrimaryKey;

        /// <summary>
        /// 是否允许为主键
        /// </summary>
        public string PrimaryKey
        {
            get { return _PrimaryKey; }
            set { _PrimaryKey = value; }
        }
    }
}
